/**
 */
package com.dingpeikeji.quickdeer.core.modules.sys.dao;

import java.util.List;

import com.dingpeikeji.quickdeer.core.common.persistence.TreeDao;
import com.dingpeikeji.quickdeer.core.common.persistence.annotation.MyBatisDao;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.Office;

/**
 * 机构DAO接口
 * @version 2014-05-16
 */
@MyBatisDao
public interface OfficeDao extends TreeDao<Office> {
	
	public Office findParentByFlatType(String flatType);
	public Office findOfficeByName(String officeName, String flatType);	//公司名
	public Office findOfficeByOrgCode(String orgcode, String flatType);	//组织机构代码
	public Office findOfficeByLicenseno(String licenseno, String flatType);	//营业执照
	public Office findOfficeByTaxregno(String taxregno, String flatType);	//税务登记证
	public List<Office> findListByAreaid(String flatType,String area_id);	//根据地区
	public List<Office> getOfficeByCitys(List<String> cityList);	//根据城市获取客运公司列表
	public List<Office> findListUnselect(Office office);			//获取未被选择的公司
	public String findIdByNameAndAbbr(String name, String abbr);
	public String findIdByAbbr(String parameter);
}
